<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>Frozen Rows in DataGrid - jQuery EasyUI Demo</title>
	<link rel="stylesheet" type="text/css" href="../../jquery-easyui-1.3.2/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../jquery-easyui-1.3.2/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../../jquery-easyui-1.3.2/demo/demo.css">
	<script type="text/javascript" src="../../jquery-easyui-1.3.2/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="../../jquery-easyui-1.3.2/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../../jquery-easyui-1.3.2/locale/easyui-lang-zh_CN.js"></script>
</head>
<body>
	<h2>在数据表格中冻结行</h2>
	<div class="demo-info">
		<div class="demo-tip icon-tip"></div>
		<div>这个示例展示如何冻结一些行,这样可以保证数据表格在向下滚动的时候被冻结的行始终可以在顶部.</div>
	</div>
	<div style="margin:10px 0;"></div>
	<table class="easyui-datagrid" title="在数据表格中冻结行" style="width:700px;height:250px"
			data-options="
				singleSelect: true,
				collapsible: true,
				rownumbers: true,
				url: '../datagrid/datagrid_data1.json',
				onLoadSuccess: function(){
					$(this).datagrid('freezeRow',0).datagrid('freezeRow',1);
				}
			">
		<thead data-options="frozen:true">
			<tr>
				<th data-options="field:'itemid',width:100">编号</th>
				<th data-options="field:'productid',width:120">产品</th>
			</tr>
		</thead>
		<thead>
			<tr>
				<th data-options="field:'listprice',width:90,align:'right'">市场价</th>
				<th data-options="field:'unitcost',width:90,align:'right'">成本价</th>
				<th data-options="field:'attr1',width:230">描述</th>
				<th data-options="field:'status',width:60,align:'center'">状态</th>
			</tr>
		</thead>
	</table>

</body>
</html>